import Vue from 'vue'
import Router from 'vue-router'
// import Login from './views/Login.vue'

Vue.use(Router)


export default new Router({
	mode: "history",
	routes: [{
		path: '/',
		name: 'login',
		component: () => import('@/views/Login.vue')
	},
	{
		path: '/Main',
		name: 'main',
		meta: {
			title: "主页"
		},
		component: () => import('@/views/Main.vue'),
		children: [
			{
				path: 'password',
				name: 'password',
				meta: {
					isVisible: false
				},
				component: () => import("@/views/Password/Password.vue"),
			},
			{
				path: 'demo',
				name: 'demo',
				meta: {
					title: "板形传递",
					icon: "el-icon-lcxtongji",
					isVisible: true
				},
				component: () => import("@/views/demo/demo.vue"),
				children: [
					{
						path: 'PLTCM1_RES',
						name: 'PLTCM1_RES',
						meta: {
							title: "连轧生产实绩",
							icon: "el-icon-wq-yuanquan",
							isVisible: true
						},
						component: () => import("@/views/demo/PLTCM1_RES.vue"),
					},
					{
						path: 'RCM1_RES',
						name: 'RCM1_RES',
						meta: {
							title: "单机架生产实绩",
							icon: "el-icon-wq-yuanquan",
							isVisible: true
						},
						component: () => import("@/views/demo/RCM1_RES.vue"),
					},
					{
						path: 'CGL2_RES',
						name: 'CGL2_RES',
						meta: {
							title: "2#镀锌生产实绩",
							icon: "el-icon-wq-yuanquan",
							isVisible: true
						},
						component: () => import("@/views/demo/CGL2_RES.vue"),
					}
				]
			},
			{
				path: 'PersonMsg',
				name: 'PersonMsg',
				meta: {
					title: "用户管理",
					icon: "el-icon-lcxtongji",
					isVisible: true
				},
				component: () => import("@/views/PersonMsg/PersonMsg.vue"),
				children: [
					{
						path: 'Userlist',
						name: 'Userlist',
						meta: {
							title: "人员列表",
							icon: "el-icon-wq-yuanquan",
							isVisible: true
						},
						component: () => import("@/views/PersonMsg/Userlist.vue"),
					},
					// {
					// 	path: 'UserMsg',
					// 	name: 'UserMsg',
					// 	meta: {
					// 		title: "用户权限管理",
					// 		icon: "el-icon-wq-yuanquan",
					// 		isVisible: true
					// 	},
					// 	component: () => import("@/views/PersonMsg/UserMsg.vue"),
					// }, 
					{
						path: 'ApkVersionMsg',
						name: 'ApkVersionMsg',
						meta: {
							title: "用户登录记录",
							icon: "el-icon-wq-yuanquan",
							isVisible: true
						},
						component: () => import("@/views/PersonMsg/ApkVersionMsg.vue"),
					}
				]
			}
		]
	}
	]
})
